package com.chenyq.rabbitmq.config;

import com.rabbitmq.client.ConnectionFactory;

/**
 *
 * @author chenyq
 * @date 2023/12/2
 */

public class RabbitMQConfig {

    public static ConnectionFactory factoryInit(){
        ConnectionFactory factory = new ConnectionFactory();
        factory.setVirtualHost("/");
        factory.setHost("127.0.0.1");
        factory.setPort(5672);
        factory.setUsername("admin");
        factory.setPassword("123456");
        return factory;
    }


}
